
//新版下载图片方式
export function downloaImage(canvas, img) {
	return new Promise((resolve, reject) => {
		let image = canvas.createImage();
		image.src = img;
		image.onload = () => {
			resolve(image);
		}
	});
}
